package com.gejt.mongo.demos.repository;

import com.gejt.mongo.demos.domain.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {

    @Autowired UserRepository userRepository;

    public List<User> findAll(){
        return  userRepository.findAll();
    }


}
